# Contributor: Adam Plumb <adamplumb@gmail.com>
# Maintainer: Adam Plumb <adamplumb@gmail.com>
pkgname=pithos
pkgver=1.5.1
pkgrel=0
pkgdesc="GTK+ player for pandora web radio"
url="https://pithos.github.io/"
arch="noarch"
license="GPL-3.0-only"
depends="
	gst-libav
	gst-plugins-base
	gst-plugins-good
	gtk+3.0
	libsecret
	python3
	py3-cairo
	py3-gobject3
	"
makedepends="meson glib-dev help2man py3-sphinx"
subpackages="$pkgname-doc"
source="https://github.com/pithos/pithos/releases/download/$pkgver/pithos-$pkgver.tar.xz
	0001-Do-not-fail-if-locale-attributes-are-not-present.patch
	0001-ui-Make-fit-on-small-mobile-screens.patch
	"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install -C output
}

sha512sums="
9791badb2fcb05aaa7a81f0e221a4800b5c9c8f7f37d1642db441a473d10d4b49a4aa44a0b8530c9e8508b393b8769aa335918d2d7de6c30b87c108d1cfde564  pithos-1.5.1.tar.xz
093390c35dc12ae05e75f1e168bd8bd2fd08d046d647978875df0e2ae0e14d2540b60875f303a0b6dd88527a820164a0e04342c9d928265b1d05d2818f147489  0001-Do-not-fail-if-locale-attributes-are-not-present.patch
dac08931d54fdd861b59e7cf20306b6e3ba7486e333afa6c0d34e417ce5aeebe6bdec5a20c7e97393272e36c4b7a0ddd350d911fa0433e6a690957be13b6cf0b  0001-ui-Make-fit-on-small-mobile-screens.patch
"
